import { post, download } from '@/http/request'

/**
 * 设备类别维护分页查询
 * @param {*} params
 * @returns
 */
export const dictPageList = params => {
    return post({
        url: '/device/dict/pageList',
        params
    })
}

/**
 * 设备类别维护不带分页查询
 * @param {*} params
 * @returns
 */
export const dictListAll = params => {
    return post({
        url: '/device/dict/listAll',
        params
    })
}

/**
 * 设备类别维护新增数据
 * @param {*} params
 * @returns
 */
export const dictAdd = params => {
    return post({
        url: '/device/dict/save',
        params
    })
}

/**
 * 设备类别维护修改数据
 * @param {*} params
 * @returns
 */
export const dictUpdate = params => {
    return post({
        url: '/device/dict/update',
        params
    })
}

/**
 * 设备类别维护删除数据
 * @param {*} params
 * @returns
 */
export const dictDel = params => {
    return post({
        url: '/device/dict/delete',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const exportExcel = params => {
    return download({
        url: '/device/dict/exportExcel',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const importExcel = params => {
    return download({
        url: '/device/dict/exportExcel',
        params
    })
}
